package service.Supper.impl;

import dao.BaseDao;
import dao.Supper.SuperuserDao;
import dao.Supper.impl.SuperuserDaoImpl;
import pojo.Superuser;
import service.Supper.SuperuserService;

public class SuperuserServiceImpl extends BaseDao implements SuperuserService {
    private SuperuserDao superuserDao;
    public SuperuserServiceImpl(){
        superuserDao = new SuperuserDaoImpl();
    }
    //验证用户名密码
    public Superuser CheckSuser(String userName, String userPwd) {
        return superuserDao.CheckSuser(userName,userPwd);
    }

   //根据id查询信息
    public Superuser SelSuser(Long id) {
        return superuserDao.SelSuser(id);
    }

  //修改个人信息
    public int updateSuser(Superuser superuser) {
        return superuserDao.updateSuser(superuser);
    }

   //修改密码
    public int updateSuserPwd(Superuser superuser) {
        return superuserDao.updateSuserPwd(superuser);
    }
}
